import path from 'path';
import Routes from './router.config';
import { plugins } from './plugin.config';
export default {
  plugins,
  routes: Routes,
  history: 'hash',
  alias: {
    '@': path.resolve(__dirname, '../src'),
  },
  targets: {
    ie: 9,
  },
  hash: true,
  ignoreMomentLocale: true,
  manifest: {
    basePath: '/',
  },
  extraBabelPlugins: [
    [
      'import',
      {
        libraryName: 'lodash',
        libraryDirectory: '',
        camel2DashComponentName: false,
      },
      'lodash',
    ],
  ],
  proxy: {
    "/api": {
      "target": "https://www.easy-mock.com/mock/5c17679e6ccaa7461ef01ee4/api",
      "changeOrigin": true,
      "pathRewrite": { "^/api": "" }
    }
  },
}